package com.guanjialhx.pojo;

/**
 *  
 *   All rights Reserved, Designed By www.changhubao.com
 *   @projectName chb
 *   @title     CodeMsg   
 *   @package    com.changhubao.chb.utils  
 *   @description      
 *   @author 李相    
 *   @date   2019/6/20 17:15  
 *   @version V1.0.0
 *   @copyright 2019 www.changhubao.com
 *   注意 本内容仅限于长护宝科技有限公司，禁止外泄以及用于其他的商业 
 *  
 */
public class CodeMsg {
    private int retCode;
    private String message;
    // 按照模块定义CodeMsg

    /**
     * 通用异常
     */
    public static CodeMsg SUCCESS = new CodeMsg(0,"success");
    public static CodeMsg SERVER_EXCEPTION = new CodeMsg(500100,"服务端异常");
    public static CodeMsg PARAMETER_ISNULL = new CodeMsg(500101,"输入参数为空");
    public static CodeMsg AUTH_ERROR = new CodeMsg(500111,"认证失败");
    public static CodeMsg NO_TOKEN = new CodeMsg(500112,"无token，请重新登录");
    public static CodeMsg TOKEN_ERROR = new CodeMsg(500113,"token无效，请重新登录");
    public static CodeMsg LOGIN_ERROR = new CodeMsg(500114,"您的账户因密码错误超试已被锁定，请联系管理员解锁");
    public static CodeMsg CanNotBeEmpty = new CodeMsg(500116,"查询失败，请检查老人评估等级和经纬度是否正常");
    public static CodeMsg DATES_ARE_NOT_CONSECUTIVE = new CodeMsg(500125,"计算工资失败，请先生成上月月份工资");
    /**
     *  业务异常
     */
    public static CodeMsg USER_NOT_EXSIST = new CodeMsg(500102,"用户不存在");
    public static CodeMsg ONLINE_USER_OVER = new CodeMsg(500103,"在线用户数超出允许登录的最大用户限制。");
    public static CodeMsg SESSION_NOT_EXSIST =  new CodeMsg(500104,"不存在离线session数据");
    public static CodeMsg NOT_FIND_DATA = new CodeMsg(500105,"查找不到对应数据");
    public static CodeMsg Nursing_Information_Cannot_Be_Empty = new CodeMsg(500117,"变更失败，老人护理时间、护理周期或护理员为空");
    public static CodeMsg theEvaluationValidityPeriodIsNotFilledIn = new CodeMsg(500127,"变更失败，评估有效期未填写");
    /**
     * 登录模块
     */
    public static CodeMsg PASSWORD_EMPTY = new CodeMsg(500106, "用户名或密码不能为空");
    public static CodeMsg PASSWORD_ERROR = new CodeMsg(500107, "用户名或密码错误");

    /**
     * 用户模块
     */
    public static CodeMsg customer_PRESENCE = new CodeMsg(500109, "用户已存在");
    public static CodeMsg customerLabel_PRESENCE = new CodeMsg(500109, "用户标签已存在");
    public static CodeMsg servingCustomerCount = new CodeMsg(500115, "警告：该护理员每日排班已超9小时，请检查！");
    public static CodeMsg carerDidNotFillIn = new CodeMsg(500126, "警告：护理员未填写，请填写完整后重试！");
    /**
     * 护理员模块
     */
    public static CodeMsg caregiver_PRESENCE = new CodeMsg(5001010, "护理员已存在");
    public static CodeMsg caregiver_CUSTOMER_ALTERSTATUS = new CodeMsg(5001011, "护理员其下 还存在有合约中状态的用户，请更改完全后再次请求");

    /**
     * 日工单导出
     * @param retCode
     * @param message
     */
    public static CodeMsg export_successful = new CodeMsg(6001, "日工单导出成功,请到报表中进行查看下载");
    public static CodeMsg schedulingExport = new CodeMsg(6002, "排班导出成功,请到报表中进行查看下载");
    public CodeMsg(int retCode, String message) {
        this.retCode = retCode;
        this.message = message;
    }
    public int getRetCode() {
        return retCode;
    }
    public String getMessage() {
        return message;
    }
    public void setMessage(String message) {
        this.message = message;
    }

    /**
     * 结算模块
     */
    public static CodeMsg Binding_Failed = new CodeMsg(500118, "绑定失败");
    public static CodeMsg Binding_Failed2 = new CodeMsg(500207, "签名认证失败");
    public static CodeMsg Binding_Failed_two = new CodeMsg(500119, "绑定失败,该数据为负结算数据 无法进行绑定");
    /**
     * 工作流
     */
    public static CodeMsg Director = new CodeMsg(500120, "您没有指派权限,请联系主管");
    public static CodeMsg CannotModifyState = new CodeMsg(500123, "改工作流为待后续或已完成,不能手动修改,如需修改请联系管理员");
    public static CodeMsg directorTwo = new CodeMsg(500124, "您不是主管,不能查看主管页面，请切换为个人");
    public static CodeMsg checkInFailed_1 = new CodeMsg(500201, "打卡签入失败");
    public static CodeMsg checkInFailed_2 = new CodeMsg(500202, "打签卡出失败");
    public static CodeMsg checkInFailed_3 = new CodeMsg(500203, "离线签到签出失败");
    public static CodeMsg checkInFailed_4 = new CodeMsg(500204, "图片上传失败");
    public static CodeMsg checkInFailed_5 = new CodeMsg(500205, "申请视讯通讯令牌失败");
    public static CodeMsg checkInFailed_6 = new CodeMsg(500206, "服务时长不足，无法签出");
}
